package com.lanou.web.controller;

import com.lanou.service.TbContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * Created by QuChao on 2018/11/11
 */
@Controller
public class TbContentController {
    @Autowired
    private TbContentService tbContentService;

    @ResponseBody
    @RequestMapping("/content/category/list")
    public Map<String, Object> list() {
        return tbContentService.findAll();
    }
}
